package com.tanhua.dubbo.api;

import com.tanhua.dubbo.pojo.BlackList;
import com.tanhua.dubbo.vo.PageInfo;

public interface BlackListApi {

    /**
     * 查询黑名单
     *
     * @param userId
     * @param page
     * @param pageSize
     * @return
     */
    PageInfo<BlackList> queryBlackList(Long userId, Integer page , Integer pageSize);

    /**
     * 查询黑名单总数
     * @param userId
     * @return
     */
    Integer queryBlackListCount(Long userId);

    /**
     * 删除黑名单
     *
     * @param userId
     * @param blackUserId
     * @return
     */
    Boolean deleteBlackUser(Long userId, Long blackUserId);
}
